<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="English" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author"
	content="David Herreman (www.free-css-templates.com)" />
<meta name="description" content="" />
<meta name="Robots" content="index,follow" />
<title>Cong ty T&T</title>
<?php
	$this->load->config("config");
	$url = $this->config->item('base_url');
	$stylepath = $url."css/style.css";
	$customstylepath = $url."css/custom.css";
	$jspath = $url."js/";
	$currentlang = $this->lang->languageCode();
	
	// Which menu item selected.
    if(empty($intro_selected_class)) 
	{
		$intro_selected_class = "";
	}
	if(empty($home_selected_class)) 
	{
		$home_selected_class = "";
	}
	if(empty($search_selected_class))
	{
		$search_selected_class = "";
	}
	if(empty($import_selected_class))
	{
		$import_selected_class = "";
	}
	if(empty($about_selected_class))
	{
		$about_selected_class = "";
	}
?>

<link href="<?php echo $stylepath?>" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo $customstylepath?>" rel="stylesheet" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo $url.'css/enhanced.css'?>" media="screen" />
<link rel="icon" href="<?php echo $url."images/favicon.png"?>" />
<?php 
	// Avoid conflicts between mootools and jquery.
	// only use jquery on import page.
	if($import_selected_class == 'current'){
		echo "<script type='text/javascript' src='".$jspath.'jquery-1.3.2.min.js'."'></script>";
		echo "<script type='text/javascript' src='".$jspath.'jQuery.fileinput.js'."'></script>";
	} else {
		echo "<script type='text/javascript' src='".$jspath.'mootools.svn.js'."'></script>";
		echo "<script type='text/javascript' src='".$jspath.'lofslidernews.mt11.js'."'></script>";
	}
?>

</head>
<body class="<?php echo $currentlang?>">
<div class="body-content">
<div class="body-content-right">
<div class="body-content-top-right">
<div id="templatemo_header">

<div id="site_title">

<table width='100%'>
<tr>
	<td class='header-first-col'>
	<div class="logo"></div>
	<div class='slogan'></div>
	</td>
	<td class='header-second-col'>
		<div class='company-name'></div>
	</td>
	<td class='header-third-col'>
		<div class='services-orientation'></div>
	</td>
</tr>	
</table>
<div class="language-bar">
<table>
	<tr>
		<td><a href="<?php echo $url.$this->lang->switch_uri('vi');?>"
		<?php if($currentlang == 'vi'){
			echo "class='current-language'";
		}
		?>><img src="<?php echo $url.'images/vn.png'?>" /></a></td>
		<td><a href="<?php echo $url.$this->lang->switch_uri('en');?>"
		<?php if($currentlang == 'en'){
			echo "class='current-language'";
		}
		?>><img src="<?php echo $url.'images/en.png'?>" /></a></td>
	</tr>
</table>
</div>
</div>
<!-- end of site_title -->

<div class="cleaner"></div>

</div>
<!-- end of header -->

<div id="templatemo_menu_wrapper">
	<div class="templatemo-menu-left">
    <div class="templatemo-menu-right">
    <div id="templatemo_menu">
    	<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
			<td>
        	<ul>
				<li><a class="<?php echo $home_selected_class?>" href="<?php echo $url.$currentlang?>" ><?php echo $this->lang->line('lang.menu.home')?><span></span></a></li>
				<li><a class="<?php echo $intro_selected_class?>" href="<?php echo $url.$currentlang.'/welcome'?>" ><?php echo $this->lang->line('lang.menu.intro')?><span></span></a></li>
				<?php
					if($this->session->userdata('loggedIn') == true)
					{
						echo "<li><a class='".$search_selected_class."' href='".$url.$currentlang."/search'>".$this->lang->line('lang.menu.search').'<span></span></a></li>';
					}
				
					if($this->session->userdata('loggedIn') == true && $this->session->userdata('role') == ROLE_ADMIN){
						echo "<li><a class='".$import_selected_class."' href=".$url.$currentlang.'/import'.'>'.$this->lang->line('lang.menu.import').'<span></span></a></li>';
					} 
				?>
				<li><a  class="<?php echo $about_selected_class?>" href="<?php echo $url.$currentlang.'/about'?>" ><?php echo $this->lang->line('lang.menu.contact')?><span></span></a></li>
        	</ul>  
        	</td>
			<td class="login-form">
			<div style="float:right;">
				<?php 
					$loggedIn = $this->session->userdata('loggedIn');
					if(empty($loggedIn)){
						echo "<div class='login-info'>";
						$this->load->helper("form");
						echo form_open($url.$currentlang.'/login/do_login/');
						echo "<span>";
						echo "<label>".$this->lang->line('lang.menu.username')."</label>";
						echo "</span>";
						echo "<span>";
						echo "<input type='text' size='7' name='username'/>";
						echo "</span>";
						echo "<span>&nbsp;&nbsp;";
						echo "<label>".$this->lang->line('lang.menu.password')."</label>";
						echo "</span>";
						echo "<span>";
						echo "<input type='password' size='7' name='password'/></span>";
						echo "<span><input type='submit' value='".$this->lang->line('lang.menu.loginbtn')."'/></span>";
						echo "</form>";
					} else {
						echo "<div class='logged-info'>";
						$username = $this->session->userdata('user')->NAME;
						echo "<label class='user-logged'><a title='".$this->lang->line('lang.edit.user.tooltip')."' href='".$url.$currentlang.'/user'."'>".$username.'</a>&nbsp;|&nbsp;</label>'."<a href='".$url.$currentlang.'/login/logout'."'>".$this->lang->line('lang.menu.logout')."</a>";
					}
					echo "</div>";
				?>
			</div>
			</td>
			</tr>
			</table> 
	</div>
	</div>
	</div>
</div> <!-- end of templatemo_menu -->


<div id="templatemo_main"> <span class="tm_bottom"></span>
	
	<div id="templatemo_content">
		<div class="pb_right"/>
    	<?php echo $content?>
  	</div>
    <div class="cleaner"></div>
    </div>
    <?php
    	if($intro_selected_class == 'current') {// if we are in introduction page.
    		echo "<div id='right_side'>";
			echo "	<div class='pad'>";
			echo "		<div class='introduce-image-canxe'></div>";
			echo "		<h3>".$this->lang->line('lang.right.field1')."</h3><br/><br/>";
			echo "		<div class='introduce-image-transport'></div>";
			echo "		<h3>".$this->lang->line('lang.right.field2')."</h3><br/><br/>";
			echo "		<div class='introduce-image-shipping'></div>";
			echo "		<h3>".$this->lang->line('lang.right.field3')."</h3>";
			echo "	</div>";
			echo "</div>";
    	}
    ?>
    
    <div class="cleaner"></div>
</div> <!-- end of main -->

<div id="templatmeo_bottom">
<table width="100%" style="padding-top:20px;padding-left : 30px;">
<tr>
<td>
	<div class="bottom_box" style="float:left;">
    	<h5><span><?php echo $this->lang->line('lang.company.headquarter')?></span></h5>
        <p><?php echo $this->lang->line('lang.company.headquarter.address')?></p>
    </div>
</td>
<td>    
    <div class="bottom_box">
    	<h5><span><?php echo $this->lang->line('lang.company.catlai')?></span></h5>
        <p><?php echo $this->lang->line('lang.company.catlai.address')?></p>
    </div>
</td>
</tr>
</table>

<div id="templatemo_footer">
	Copyright © 2012 <span>T&T Transport Services Trading Company Limited. All rights reserved</span>
</div>
</div>
</div>
</div>
</body>
</html>